<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

</head>
<body>
<div th:fragment="head">
    <div id="hd_info">
        <div id="cnts">
            <div id="login_area" >
                <div id="login_area_left">
                    <a href="/api/public/go2Index">
                        Blogjava首页
                    </a>

                </div>
                <div id="login_area_right">
                    <span th:if="${session.SPRING_SECURITY_CONTEXT}==null">
                      [
                      <a href="/api/public/go2Login">登录</a>
                      .
                      <a href="/api/public/go2AddBlogger">注册博客用户</a>
                      .
                      <a href="/api/public/go2AddAdm">注册管理员</a>
                      ]
                  </span>
                    <span th:if="${session.SPRING_SECURITY_CONTEXT}!=null">
                      [
                      <a th:if="${session.SPRING_SECURITY_CONTEXT!=null}" th:text="${session.SPRING_SECURITY_CONTEXT.authentication.principal.nickname}+'的个人中心'" href="/api/user/blog/go2Blog">个人中心</a>
                       .
                       <a href="/logout">退出</a>
                       ]
                  </span>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>